package xyz.jangle.hex;

public class HexMain {

	public static void main(String[] args) {
		
		int a = 0x10;
		String aStr = String.valueOf(a);
		System.out.println(a);
		System.out.println(aStr);
		System.out.println(a+"");
		
        String hexString = "1A3F";
        int hexNumber = Integer.parseInt(hexString, 16);
        System.out.println("16进制数为: " + hexNumber);
        
        int decimalNumber = hexNumber;
        String hexString2 = Integer.toHexString(decimalNumber);
        System.out.println("十六进制字符串: " + hexString2);

	}

}
